package com.springboot.enums;


public enum ResultEnum {

    UNKONW_ERROR(-1,"未知错误"),
    NOT_LOGIN(1,"未登录"),
    PASSWORD_ERROR(2,"密码错误"),
    PASSWORDREPEAT_ERROR(3,"新密码与旧密码相同，请重新输入！"),
    DIFPASSWORD_ERROR(4,"两次输入的新密码不同，请重试！"),
    OLDPASSWORD_ERROR(5,"旧密码输入错误，请重试！"),
    NOT_ACTIVE_ERROR(6,"您的账户尚未激活邮箱！"),
    EXIST_ERROR(7,"用户已存在！"),
    NOT_EXIST_ERROR(8,"用户不存在！"),
    DEL_ERROR(9,"此条信息不存在！"),
    VERIFICATION_CODE_ERROE(10,"请输入正确的验证码"),
    MATCHING_USER_TYPE_ERRPR(11,"匹配用户类型出现错误！"),
    NullPointerException(12,"空指针异常！"),
    Repeat_login_Error(13,"请勿重复登录！"),
     ACCOUNTlOGOUT(14,"账户已注销"),
    SUCCESS(200,"success"),
    DEL_SUCCESS(15,"删除信息成功！"),
    REGISTER_SUCCESS(16,"注册成功！"),
    LOGIN_SUCCESS(17,"登录成功! "),
    PASSRESET_SUCCESS(18,"密码修改成功！"),
    UPDATE_SUCCESS(19,"更新信息成功！"),
    EMPTY_FILE(20,"文件不能为空" ),
    ERROR_FORMAT(21,"文件格式有误" ),
    FILE_EXIST(22,"文件已存在" ),
    STORAGE_FAIED(23,"存储文件失败" ),
    RENAME_FILE(24,"文件重命名失败" ),
    TEAM_FAILED(25,"无成员管理权限" ),
    CONFIRM_FAILED(26,"任务确认失败" );

    private Integer code;

    private String msg;

    ResultEnum(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
